package com.ttg.model.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author ZQ
 * @version 1.0
 * @Description 管理员后台操作日志
 * @date 2021/2/4 17:03
 */
@Data
@NoArgsConstructor
@TableName(value = "tbl_admin_log")
public class AdminLog implements Serializable {
    /**
     * 自增主键
     */
    @TableId(value = "log_id", type = IdType.AUTO)
    private Long logId;

    /**
     * 操作人
     */
    @TableField(value = "log_adm_id")
    private Long logAdmId;

    /**
     * 操作频道
     */
    @TableField(value = "log_chl_id")
    private Long logChlId;

    /**
     * 操作对象编号
     */
    @TableField(value = "log_obj_id")
    private Long logObjId;

    /**
     * 增改查删
     */
    @TableField(value = "log_curd")
    private String logCurd;

    /**
     * 备注
     */
    @TableField(value = "log_remark")
    private String logRemark;

    /**
     * 操作时间
     */
    @TableField(value = "log_time")
    private LocalDateTime logTime;

    /**
     * ip
     */
    @TableField(value = "log_ip")
    private String logIp;

    /**
     * 用户登录名
     */
    @TableField(value = "adm_user_name")
    private String admUserName;

    /**
     * 真实姓名
     */
    @TableField(value = "adm_true_name")
    private String admTrueName;

    /**
     * 栏目名称
     */
    @TableField(value = "chl_name")
    private String chlName;

    private static final long serialVersionUID = 1L;
}